from django.db import models


# Create your models here.


class Notice(models.Model):
    """通知表"""
    userId = models.IntegerField()
    type = models.CharField(max_length=20, null=True, verbose_name="通知的类型")
    noticeType = models.CharField(max_length=20, null=True, verbose_name="类型的补充")
    content = models.TextField(verbose_name="通知内容")
    create_time = models.DateTimeField(auto_now_add=True, verbose_name="")


class PrivateLetter(models.Model):
    """私信表"""
    userId = models.IntegerField(verbose_name="发起人id")
    receiveId = models.IntegerField(verbose_name="接收人id")
    issend = models.BooleanField(default=True, verbose_name="是否发送", null=True)
    message = models.CharField(max_length=200, verbose_name="发送内容")
    create_time = models.DateTimeField(auto_now_add=True, verbose_name="发送时间")


class BlackLetter(models.Model):
    """黑名单表"""
    userId = models.IntegerField(verbose_name="用户id")
    blackId = models.IntegerField(verbose_name="黑名单id")
